import App from './App'
import Vue from 'vue'
import store from 'store/index.js'
Vue.config.productionTip = false
// 配置uview组件库
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// 全局注册组件
import CakeItem from '@/components/cake-item.vue'
Vue.component('cake-item',CakeItem)
import NavCustom from '@/components/nav-custom.vue'
Vue.component('nav-custom',NavCustom)
import HomeTile from '@/components/home-title.vue'
Vue.component('home-title',HomeTile)
import CartModal from '@/components/cart-modal.vue'
Vue.component('cart-modal',CartModal)

// 初始化leancloud
// #ifdef H5
import './utils/leancloud-init/web'
// #endif
// #ifdef MP-WEIXIN
import './utils/leancloud-init/wx'
// #endif

App.mpType = 'app'
const app = new Vue({
	store,
    ...App
})
app.$mount()
